<?php

Raise::load('core.structure.RaiseGrid');

/**
 * TestCoreRaiseGrid class
 * Testing unit of 'phpraise/core/structure/RaiseGrid.php'
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.UnitTest.Test
 */
class TestCoreRaiseGrid extends RaiseTest {

    public static function testClass(){
        self::assertClassExists('RaiseGrid');
        self::assertClassExtends('RaiseGrid', 'RaiseObject');
        self::assertClassMethod('RaiseGrid', 'cells');
    }
    
    public static function testObject(){
        $o = new RaiseGrid();
        self::assertObjectClass($o->cells(), 'RaiseTypedCollection');
        self::assertStrictEqual($o->cells()->type(), 'RaiseGridCell');
    }

}
